package cn.ainit.sys.config.thread;

import cn.ainit.common.SpringContextTool;

public class TaskThread extends Thread{

	@Override
	public void run() {
		super.run();
		try {
			TaskController controller =  (TaskController) SpringContextTool.getApplicationContext().getBean("taskController");
			while (true) {
				controller.startRW();
				//System.out.println("execute up_ReSetManagerAll");
				sleep(60000);
			}
		//插入数据
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
